a = input().split()
alphabet = ["а","б","в","г","д","е","ё","ж","з","и","й","к","л","м","н","о",
            "п","р","с","т","у","ф","х","ц","ч","ш","щ","ъ","ы","ь","э","ю","я"]
alphabet1 = ['a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z']
par1 = 0
par2_f = False
par2 = 0
par3 = 0
par4 = 0
if len(a) <= 1:
    print("Мало данных для анализа")
    exit()
else:
    for i in range(len(a)):
        if a[i][0].isupper() and a[i][0].lower() in alphabet:
            par1 += 1
    for i in range(len(a)):
        for g in range(len(a[i])):
            if a[i][g].lower() in alphabet1:
                par2_f = True
                break
        if par2_f:
            par2 += 1
            par2_f = False
    for i in range(len(a)):
        if len(a[i]) <= 3:
            par3 += 1
    for i in range(len(a)):
        if "-" in a[i]:
            par4 += 1
print("Кол-во слов:", len(a))
print("Кол-во слов с заглавной кириллической буквы:", par1)
print("Кол-во слов содержащих латинский символ:", par2)
print("Кол-во слов не превышающих 3 символа:", par3)
print("Кол-во слов в составе которых имеется дефис:", par4)
print("\t")
print("Самое длинное слово:", max(a, key=len))
print("Длина слова:", len(max(a, key=len)))
